<div id="order-list">
	<h1>Listing orders</h1>
	
	<table>
	<% @orders.each do |order| %>
  	<tr class="<%= cycle('list-line-odd', 'list-line-even') %>">
	
		<td class="order-description">
			<dl>
				<dt><%=h order.name %></dt>
				<dd><%=h order.address%></dd>
				<dd><%=h order.email%></dd>
			</dl>
		</td>
		<td class="list-actions">
    		<td><%= link_to 'Show', order %></td>
    		<td><%= link_to 'Edit', edit_order_path(order) %></td>
    		<td><%= link_to 'Destroy', order, :confirm => 'Are you sure?', :method => :delete %></td>
  	</tr>
	<% end %>
	</table>
</div>
<br />
<%= link_to 'Back to Store', :controller => 'store', :action => 'index'%>